package com.woniuxy.platform.core.controller;


import com.woniuxy.common.CommonResult;
import com.woniuxy.platform.core.model.PmDispose;
import com.woniuxy.platform.core.service.PmDisposeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gmx
 * @since 2021-07-08
 */
@RestController
@RequestMapping("/pmDispose")
@Api(tags = "受理类型接口")
public class PmDisposeController {

    @Resource
    private PmDisposeService service;

    @GetMapping("selectDispose")
    @ApiOperation("查询受理类型")
    public CommonResult selectDispose(){
        List<PmDispose> list = this.service.selectAll();
        return CommonResult.success(list);
    }
}

